PHP: strstr

您所在的位置:网站首页 php net PHP: strstr

PHP: strstr

#PHP: strstr| 来源: 网络整理| 查看: 265

haystack

输入字符串。

needle

Prior to PHP 8.0.0, if needle is not a string, it is converted to an integer and applied as the ordinal value of a character. This behavior is deprecated as of PHP 7.3.0, and relying on it is highly discouraged. Depending on the intended behavior, the needle should either be explicitly cast to string, or an explicit call to chr() should be performed.

before_needle

若为 true,strstr() 将返回 needle 在 haystack 中的位置之前的部分。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3